<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  <script>
      const person ={
            name: "男人",
            say:()=>{
console.log(this)
            }
        }
        // const person2={
        //     name:"其他人"
        // }
        // person.say()
        // 修改this指向
        // person.say.call(person2)
        // 箭头函数中指向this上一层，不能改变this指向
        person.say(this)
  </script>
</body>
</html>